#include "WinDialog.h"

namespace qtangram {
    WinDialog::WinDialog(QWidget* parent) : QDialog(parent) {
	setupUi(this);
	connect(okButton, SIGNAL(clicked()), this, SLOT(onOkClicked()));
	connect(againButton, SIGNAL(clicked()), this, SLOT(onAgainClicked()));
    }

    void WinDialog::onAgainClicked() { hide(); emit sigAgainClicked(); }
    void WinDialog::onOkClicked() { hide(); emit sigOkClicked(); }
}
